﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Diagnostics;

namespace Compact13TaskManager
{
    public partial class frmMain: Form
    {

       //As in the DLL header file:
       public  const int MaxNoApps = 12;
       public  const int Max_String = 0x1f; // Space for 30 chars

 


       
        public class WindowDetail
        {
            public  const int WindowTextLength = 30;
            public  const int MaxNoApps = 12;
            public  const int Max_String = 0x1f;//Space for 30 chars

            public IntPtr Handle { get; set; }
            public String WindowText { get; set; }

            public WindowDetail()
            {
                Handle = IntPtr.Zero;
                WindowText = new string(' ', Max_String);
            }

            public WindowDetail(IntPtr handle, String windowText)
            {
                Handle = handle;
                WindowText = windowText;
            }

            public  static List<WindowDetail> Windows {get; set;}

             
        }

        


        private int ConsoleCount = 0;
        List<int> DeletedConsoles = new List<int>();
        private bool wasConsole = false;


        int WindowListCurrentIndex = -1;

        private bool AlwaysOnTop { get; set; }

        private bool AutoRefresh { get; set; }
        private int UpdateCount { get; set; }
        private int UpdateInterval { get; set; }
        private int UpdatePeriod { get; set; }

        //////private bool InRefresh = false;
        //////private int RefreshTicks = 0;
        //////private int MaxRefreshTticks = 2;


    }
}
